<?php 

include_once("util/MysqlUtil.php");

class MemberModel{


	//获得所有会员
	public function all(){

		//从数据库中查询所有会员信息
		$sql="select * from member limit 200";

		$mysql=new MysqlUtil();

		$data=$mysql->query($sql);

		return $data;

	}


	//获得指定编号的会员信息
	public function info($id){

		$sql="select * from member where id=".$id;

		$mysql=new MysqlUtil();

		$data=$mysql->query($sql);

		return $data;

	}



}


 ?>